package com.xiyue.leaspring.vo;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = {"classpath:spring/spring-base8.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class EmpTest8 {

	@Resource
	private Dept8 dept;
	
	@Test
	public void testEmp() {
		System.out.println("部门编号:"+this.dept.getDeptno()+"\t部门名称:"+this.dept.getDname());
		this.dept.getInfos().forEach((key,value)->{
			System.out.println("\tkey:"+key+"、value:"+value);
		});
	}

}
